//
//  BaseViewController.m
//  SpeechRecognition
//
//  Created by 张云江 on 2019/9/28.
//  Copyright © 2019年 张云江. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.hidden = YES;
    
    [self SetcustomNavBar];
    
    [self setNav];
    [self creatUI];
    
}

- (void)SetcustomNavBar
{
    [self.view addSubview:self.customNavBar];
    
    self.customNavBar.titleLabelColor = kUIColorFromRGB(0x000000);
    if (self.navigationController.childViewControllers.count != 1) {
        [self.customNavBar wr_setLeftButtonWithImage:[UIImage imageNamed:@"Back"]];
    }
}

- (WRCustomNavigationBar *)customNavBar
{
    if (_customNavBar == nil) {
        _customNavBar = [WRCustomNavigationBar CustomNavigationBar];
    }
    return _customNavBar;
}

- (void)creatUI
{
    
}

- (void)setNav
{
    
}
@end
